<?php foreach ($data['items'] as $post): ?>
    <?php
    $category_name = $category_name_map[$post['category_id']];
    $author = $users[$post['post_author_id']];
    require 'blog-detail.php';
    ?>
<?php endforeach; ?>

<?php echo $data['pagination']['html']; ?>